package com.cqengine.service;

import com.cqengine.entity.Position;

import java.util.List;

/**
 * @author ddd
 */
@SuppressWarnings("all")
public interface PositionService {
    boolean isContinueRetry(Integer count);

    boolean insert(Position position);

    boolean batchInsert(List<Position> list);

    boolean update(Position position,double price) throws Exception;

    boolean update(Position position,boolean trigger) throws Exception;

    boolean update(Position origin,Position newPosition);

    boolean BatchUpdate(List<Position> origin,List<Position> newPosition);

    boolean delete(Position position) throws Exception;

    Integer batchDelete(String userId,String symbol);

    Position query(String id);

    List<Position> query(double price);

    List<Position> query(String userId,String symbol);
}
